from django.conf import settings
from django.conf.urls.static import static
from django.urls import path
from user.views import LoginUrlView, CallBackView, MyTestView, UserInfoView, UserUpdateView, IdCardView, IdCardResView
from user.views import CeleryTestView


urlpatterns = [
    path('ding/', LoginUrlView.as_view()),
    path('dingtalkApi/', CallBackView.as_view()),
    path('info/', UserInfoView.as_view()),
    path('update/<int:id>/', UserUpdateView.as_view()),
    path('idcard/', IdCardView.as_view()),
    path('idcardres/', IdCardResView.as_view()),
    path('mytest/', MyTestView.as_view()),
    path('testcelery/', CeleryTestView.as_view()),
    # path('abc/', LoginView.as_view()),
    # path('abcd/',CallbackView.as_view()),
]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

